import Vue from 'vue'
import VueRouter from 'vue-router'
import index from '../views/index'
import list from '../views/list'
import detail from '../views/detail'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: index
  },
  {
    path: '/list',
    name: 'list',
    component: index
  },
  {
    path: '/detail',
    name: 'detail',
    component: index
  }
]

const router = new VueRouter({
  routes
})

export default router
